/**
 * PageMarket
 * LoginAction.java
 * com.android.pagemarket.io.protocol.in
 * 
 */
package com.android.pagemarket.io.protocol.in;

import com.android.pagemarket.io.protocol.out.Company;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-3
 * @see : 
 * @Copyright : copyrights reserved by personal 2007-2012
 **********************************************************/
public class LoginAction extends HttpAction<Company>
{  
//    companyName 是   C   公司名称
//    companyNum  是   C   公司编号
    public LoginAction(String companyName,String companyNum)
    {
        super("1");
        setCompanyName(companyName);
        setCompanyNum(companyNum);
    }
    
    public void setCompanyName(String companyName)
    {        
        addJsonParam("companyName", companyName);
    }

    public void setCompanyNum(String companyNum)
    {
        addJsonParam("companyNum", companyNum);
    }

    @Override
    protected Company parseJson(String response) throws Exception
    {
        Company one = new Company();
        one.parseResult(response);
        return one;
    }
}
